CFLAGS=-g -DLOG_STDOUT -pthread
INCLUDE= -I ../../includes
LIB= -L ../../src/ -lfs
CC= g++
CASOS= ct_write_9 ct_write_8 ct_write_1 ct_write_2 ct_write_3 ct_write_4 ct_write_5
OBJ= ../../src/write.o ../../src/inode.o ../../src/acionar_driver.o \
	 ../../src/alocar_bloco.o ../../src/sem_utils.o ../../src/damaged_block.o

all: $(CASOS)

ct_write_5: ct_write_5.c
	$(CC) $^ $(OBJ) -o $@ $(CFLAGS) $(INCLUDE) 

ct_write_4: ct_write_4.c
	$(CC) $^ $(OBJ) -o $@ $(CFLAGS) $(INCLUDE)  

ct_write_3: ct_write_3.c
	$(CC) $^ $(OBJ) -o $@ $(CFLAGS) $(INCLUDE)  

ct_write_2: ct_write_2.c
	$(CC) $^ $(OBJ) -o $@ $(CFLAGS) $(INCLUDE)  

ct_write_1: ct_write_1.c
	$(CC) $^ $(OBJ) -o $@ $(CFLAGS) $(INCLUDE)  

ct_write_8: ct_write_8.c
	$(CC) $^ $(OBJ) -o $@ $(CFLAGS) $(INCLUDE) 
	
ct_write_9: ct_write_9.c
	$(CC) $^ $(OBJ) -o $@ $(CFLAGS) $(INCLUDE) 
	
clear: 
	rm $(CASOS)